package StaticProxy;

public class StaticProxyExample {
    public static void main(String[] args) {
        Service realService = new RealService();
        Service proxy = new LoggingProxy(realService);

        proxy.doTask(); // 使用代理对象调用方法
    }
}
